<style tyle="text/css">
    .modal-lg {
      width: 70%;
    }
  </style>
  <div class="modal-header">
    <h4 class="modal-title text-center">设置小票格式</h4>
  </div>
  <div class="modal-body">
      <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
        <div class="form-group" >
            <label class="col-lg-2 control-label">名称</label>                       
            <div class="col-lg-2">
                <input type="text" class="form-control" ng-model="info.name" placeholder="名称">
            </div>
        </div>
        <div class="form-group" >
            <label class="col-lg-2 control-label">所属景区</label>                       
            <div class="col-lg-3">
                <ui-select ng-model="info.place_code" theme="bootstrap">
                    <ui-select-match placeholder="请选择一个景区">{{$select.selected.name}}</ui-select-match>
                    <ui-select-choices repeat="item.code as item in viewlist | filter: $select.search">
                        <span>{{item.name}}（{{item.code}}）</span>
                    </ui-select-choices>
                </ui-select>
            </div>
        </div>
        <div class="form-group" >
            <label class="col-lg-2 control-label text-center">门票规格</label>
            <div class="col-lg-2">
            <input type="text" class="form-control" ng-model="info.format_height" placeholder="长度 毫米">
            </div>
            <div class="col-lg-2">
                <input type="text" class="form-control" ng-model="info.format_width" placeholder="宽度 毫米">
            </div>
          
            <div class="col-lg-2">
                <input type="text" class="form-control" ng-model="info.format_x" placeholder="打印位置X轴">
            </div>
            <div class="col-lg-2">
                <input type="text" class="form-control" ng-model="info.format_y" placeholder="打印位置Y轴">
            </div>
            <div class="col-lg-2">
                  
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.ticket_name">&nbsp;&nbsp;票种名</label>
            <div class="col-lg-2">
                    <input type="text" class="form-control" ng-model="info.ticket_name_x" placeholder="打印位置X轴">
                </div>
                <div class="col-lg-2">
                    <input type="text" class="form-control" ng-model="info.ticket_name_y" placeholder="打印位置Y轴">
                </div>
          
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.pay_price">&nbsp;&nbsp;支付金额</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.pay_price_x" placeholder="打印位置X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.pay_price_y" placeholder="打印位置Y轴">
          </div>
        </div>
        <div class="form-group">  
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.user_num">&nbsp;&nbsp;限 人使用</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.user_num_x" placeholder="打印位置X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.user_num_y" placeholder="打印位置Y轴">
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.order_code">&nbsp;&nbsp;订单编号</label>
          <div class="col-lg-2">
            <input type="text" class="form-control" ng-model="info.order_code_x" placeholder="打印位置X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.order_code_y" placeholder="打印位置Y轴">
          </div>    
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.voucher_code">&nbsp;&nbsp;凭票码</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.voucher_code_x" placeholder="打印位置X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.voucher_code_y" placeholder="打印位置Y轴">
          </div>    
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.create_order_time">&nbsp;&nbsp;下单时间</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.create_order_time_x" placeholder="打印位置X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.create_order_time_y" placeholder="打印位置Y轴">
          </div>      
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.contact_user">&nbsp;&nbsp;联系人</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.contact_user_x" placeholder="打印位置X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.contact_user_y" placeholder="打印位置Y轴">
          </div>     
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.contact_info">&nbsp;&nbsp;联系方式</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.contact_info_x" placeholder="打印位置X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.contact_info_y" placeholder="打印位置Y轴">
          </div>    
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.QR_code">&nbsp;&nbsp;二维码</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.QR_code_x" placeholder="打印位置X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.QR_code_y" placeholder="打印位置Y轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.QR_code_height" placeholder="高度mm">
          </div>  
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.counter_code">&nbsp;&nbsp;柜台号</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.counter_code_x" placeholder="柜台号X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.counter_code_y" placeholder="柜台号Y轴">
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label text-center"><input type="checkbox" ng-model="info.device_code">&nbsp;&nbsp;设备号</label>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.device_code_x" placeholder="设备号X轴">
          </div>
          <div class="col-lg-2">
              <input type="text" class="form-control" ng-model="info.device_code_y" placeholder="设备号Y轴">
          </div>
        </div>
        <div  style="width: 370px ; height: 370px ; border:1px solid #e2e2e2 ; position :  absolute ; right : 10%;top: 27%;">
        </div>
      </form>
  </div>
  <div class="modal-footer">
      <button class="btn btn-success" type="button" ng-click="save()">确定</button>
      <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
  </div>
  